{extend name="common/main"/}
{block name="style"}
    <style>
        .tit {
            color:#666;
        }
        .pre {
            background:#f2f2f2;
            border:1px solid #ccc;
            padding:10px;
            margin-bottom:15px;
        }
    </style>
{/block}
{block name="body"}
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <div class="with-padding">
    <div class="col-md-12">
    <div class="pre">
        <div class="row">
            <div class="col-md-12"><span class="tit">广告ID：</span>{$data.id}</div>
            <div class="col-md-12"><span class="tit">广告标题：</span>{$data.title}</div>
            <div class="col-md-12"><span class="tit">链接地址：</span>{$data.url}</div>
            <div class="col-md-12"><span class="tit">创建时间：</span>{$data.create_time}</div>
            <div class="col-md-12"><span class="tit">开始时间：</span>{$data.start_time}</div>
            <div class="col-md-12"><span class="tit">结束时间：</span>{$data.end_time}</div>
        </div>
    </div>
    </div>
        <div class="col-md-12">
            <h3>预览</h3>
            <div class="pre">
                {empty name="$data.data.pic"}{else /}
                    <a href="{$data.url}" target="{$data.data.target}">
                        <img src="{$data.data.pic_url}" />
                    </a>
                {/empty}
                {empty name="$data.data.code"}{else /}
                    <div>{$data.data.code}</div>
                {/empty}
                {empty name="$data.data.text"}{else /}
                    <a href="{$data.url}" style="font-size:{$data.data.text_font_size};color:{$data.data.text_color};" target="{$data.data.target}">{$data.data.text}</a>
                {/empty}
            </div>
        </div>
        
    </div>
{/block}